-- GENERATED SPELL FOR [Felblood Initiate] --


function spell0_24918(pUnit, Event) --@Bitter Withdrawal,n/a--
pUnit:FullCastSpellOnTarget(29098,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24918', 5000, 1)
end

function spell1_24918(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(14873,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24918', 573, 1)
end

function spell2_24918(pUnit, Event) --@Spellbreaker,n/a--
pUnit:FullCastSpellOnTarget(35871,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24918', 643, 1)
end

function Sorts_24918(pUnit, Event)
local choix_sorts_24918 = math.random(0, 2)
if choix_sorts_24918 == 0 then
pUnit:RegisterEvent('spell0_24918', 1, 1)
end
if choix_sorts_24918 == 1 then
pUnit:RegisterEvent('spell1_24918', 1, 1)
end
if choix_sorts_24918 == 2 then
pUnit:RegisterEvent('spell2_24918', 1, 1)
end
end

function mob24918_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24918', math.random(1500, 3000), 1)
end

function mob24918_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24918_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24918_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24918, 1, 'mob24918_Action')
RegisterUnitEvent(24918, 2, 'mob24918_Leave')
RegisterUnitEvent(24918, 3, 'mob24918_Kill')
RegisterUnitEvent(24918, 4, 'mob24918_Die')
